package com.lbc.service.impl;

import com.lbc.bean.entity.NewsLike;
import com.lbc.dao.custom.CtNewsLikeMapper;
import com.lbc.service.NewsLikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xyl
 * @date 2021-03-29 11:02
 */
@Service
public class NewsLikeServiceImpl implements NewsLikeService {

    @Autowired
    private CtNewsLikeMapper newsLikeMapper;
    @Override
    public NewsLike getByNewsIdAndUserId(Integer newsId, Integer userId) {
        return newsLikeMapper.selectByNewsIdAndUserId(newsId,userId);
    }
}
